home *** CD-ROM | disk | FTP | other *** search
-
-
-
- XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX))))
-
-
-
- NNNNAAAAMMMMEEEE
- _X_m_D_r_a_g_I_c_o_n - The DragIcon widget class
-
- SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
- #include <Xm/DragDrop.h>
-
- DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
- A DragIcon is a component of the visual used to represent
- the source data in a drag and drop transaction. During a
- drag operation, a real or simulated X cursor provides drag-
- over visuals consisting of a static portion that represents
- the object being dragged, and dynamic cues that provide
- visual feedback during the drag operation. The visual is
- attained by blending together various _X_m_D_r_a_g_I_c_o_n_s specified
- in the _X_m_D_r_a_g_C_o_n_t_e_x_t associated with the drag operation.
-
- The static portion of the drag-over visual is the graphic
- representation that identifies the drag source. For
- example, when a user drags several items within a list, a
- DragIcon depicting a list might be supplied as the visual.
- The _X_m_D_r_a_g_C_o_n_t_e_x_t resources, _X_m_N_s_o_u_r_c_e_C_u_r_s_o_r_I_c_o_n or
- _X_m_N_s_o_u_r_c_e_P_i_x_m_a_p_I_c_o_n, specify a DragIcon to use for the
- static portion of the visual.
-
- A drag-over visual incorporates dynamic cues in order to
- provide visual feedback in response to the user's actions.
- For instance, the drag-over visual might use different
- indicators to identify the type of operation (copy, link, or
- move) being performed. Dynamic cues could also alert the
- user that a drop site is valid or invalid as the pointer
- traverses the drop site. The _X_m_N_o_p_e_r_a_t_i_o_n_C_u_r_s_o_r_I_c_o_n and
- _X_m_N_s_t_a_t_e_C_u_r_s_o_r_I_c_o_n resources of _X_m_D_r_a_g_C_o_n_t_e_x_t specify
- DragIcons for dynamic cues.
-
- A drag-over visual typically consists of a source, operation
- and state DragIcon. The _X_m_N_b_l_e_n_d_M_o_d_e_l resource of
- _X_m_D_r_a_g_C_o_n_t_e_x_t offers several options that determine which
- icons are blended to produce the drag-over visual. DragIcon
- resources control the relative position of the operation and
- state icons (if used). If a particular DragIcon is not
- specified, the toolkit uses the _X_m_S_c_r_e_e_n default DragIcons.
-
- An application initializes a DragIcon with the function
- _X_m_C_r_e_a_t_e_D_r_a_g_I_c_o_n or through entries in the resource
- database. If a pixmap and its mask (optional) are specified
- in the resource database, the toolkit converts the values in
- the X11 Bitmap file format and assigns values to the
- corresponding resources.
-
- CCCCllllaaaasssssssseeeessss
- DragIcon inherits behavior and a resource from _O_b_j_e_c_t.
-
-
-
-
- Page 1 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX))))
-
-
-
- The class pointer is _x_m_D_r_a_g_I_c_o_n_O_b_j_e_c_t_C_l_a_s_s.
-
- The class name is _X_m_D_r_a_g_I_c_o_n.
-
- NNNNeeeewwww RRRReeeessssoooouuuurrrrcccceeeessss
- The following table defines a set of widget resources used
- by the programmer to specify data. The programmer can also
- set the resource values for the inherited classes to set
- attributes for this widget. To reference a resource by name
- or by class in a .Xdefaults file, remove the _X_m_N or _X_m_C
- prefix and use the remaining letters. To specify one of the
- defined values for a resource in a .Xdefaults file, remove
- the _X_m prefix and use the remaining letters (in either
- lowercase or uppercase, but include any underscores between
- words). The codes in the access column indicate if the
- given resource can be set at creation time (_C), set by using
- _X_t_S_e_t_V_a_l_u_e_s (_S), retrieved by using _X_t_G_e_t_V_a_l_u_e_s (_G), or is
- not applicable (_N/_A).
-
- XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- _____________________________________________________________________________
- XmNattachment XmCAttachment unsigned char XmATTACH_NORTH_WEST CSG
- XmNdepth XmCDepth int 1 CSG
- XmNheight XmCHeight Dimension 0 CSG
- XmNhotX XmCHot Position 0 CSG
- XmNhotY XmCHot Position 0 CSG
- XmNmask XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNoffsetX XmCOffset Position 0 CSG
- XmNoffsetY XmCOffset Position 0 CSG
- XmNpixmap XmCPixmap Pixmap XmUNSPECIFIED_PIXMAP CSG
- XmNwidth XmCWidth Dimension 0 CSG
-
-
- _X_m_N_a_t_t_a_c_h_m_e_n_t
- Specifies a relative location on the source icon for
- the attachment of the state or operation icon. The
- origin of the state and operation icons is aligned with
- the specified compass point on the source icon. The
- _X_m_N_o_f_f_s_e_t_X and _X_m_N_o_f_f_s_e_t_Y resources can be used to
- further refine the icon positions. The possible values
- are
-
- _X_m_A_T_T_A_C_H__N_O_R_T_H__W_E_S_T
- Attaches the origin of the state or operation icon to
- the northwest point on the source icon.
-
- _X_m_A_T_T_A_C_H__N_O_R_T_H
- Attaches the origin of the state or operation icon to
- the north point on the source icon.
-
- _X_m_A_T_T_A_C_H__N_O_R_T_H__E_A_S_T
-
-
-
- Page 2 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX))))
-
-
-
- Attaches the origin of the state or operation icon to
- the northeast point on the source icon.
-
- _X_m_A_T_T_A_C_H__E_A_S_T
- Attaches the origin of the state or operation icon to
- the east point on the source icon.
-
- _X_m_A_T_T_A_C_H__S_O_U_T_H__E_A_S_T
- Attaches the origin of the state or operation icon to
- the southeast point on the source icon.
-
- _X_m_A_T_T_A_C_H__S_O_U_T_H
- Attaches the origin of the state or operation icon to
- the south point on the source icon.
-
- _X_m_A_T_T_A_C_H__S_O_U_T_H__W_E_S_T
- Attaches the origin of the state or operation icon to
- the southwest point on the source icon.
-
- _X_m_A_T_T_A_C_H__W_E_S_T
- Attaches the origin of the state or operation icon to
- the west point on the source icon.
-
- _X_m_A_T_T_A_C_H__C_E_N_T_E_R
- Attaches the origin of the state or operation icon to
- the center of the source icon. The _X_m_N_o_f_f_s_e_t_X and
- _X_m_N_o_f_f_s_e_t_Y resources may be used to center the attached
- icon.
-
- _X_m_A_T_T_A_C_H__H_O_T
- Attaches the hotspot coordinates of a state or
- operation DragIcon to an xxxx,,,,yyyy position on the source
- icon. The xxxx,,,,yyyy coordinate is taken from the event
- passed to the _X_m_D_r_a_g_S_t_a_r_t function, and made relative
- to the widget passed as an argument to the same
- function. Specifies the depth of the pixmap.
- Specifies the height of the pixmap. Specifies the x-
- coordinate of the hotspot of a cursor DragIcon in
- relation to the origin of the pixmap bounding box.
- Specifies the y-coordinate of the hotspot of a cursor
- DragIcon in relation to the origin of the pixmap
- bounding box. Specifies a pixmap of depth one to use
- as the DragIcon mask pixmap. Specifies a horizontal
- offset (in pixels) of the origin of the state or
- operation icon relative to the attachment point on the
- source icon. A positive offset value moves the origin
- to the right; a negative value moves the origin to the
- left. Specifies a vertical offset (in pixels) of the
- origin of the state or operation icon relative to the
- attachment point on the source icon. A positive offset
- value moves the origin down; a negative value moves the
- origin up. Specifies a pixmap to use as the DragIcon
-
-
-
- Page 3 (printed 11/11/03)
-
-
-
-
-
-
- XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX)))) UUUUNNNNIIIIXXXX SSSSyyyysssstttteeeemmmm VVVV XXXXmmmmDDDDrrrraaaaggggIIIIccccoooonnnn((((3333XXXX))))
-
-
-
- pixmap. Specifies the width of the pixmap.
-
- IIIInnnnhhhheeeerrrriiiitttteeeedddd RRRReeeessssoooouuuurrrrcccceeeessss
- DragIcon inherits behavior and a resource from _O_b_j_e_c_t. For
- a complete description of this resource, refer to the _O_b_j_e_c_t
- man page.
-
- OOOObbbbjjjjeeeecccctttt RRRReeeessssoooouuuurrrrcccceeee SSSSeeeetttt
- NNNNaaaammmmeeee CCCCllllaaaassssssss TTTTyyyyppppeeee DDDDeeeeffffaaaauuuulllltttt AAAAcccccccceeeessssssss
- ____________________________________________________________________
- XmNdestroyCallback XmCCallback XtCallbackList NULL C
-
-
- RRRREEEELLLLAAAATTTTEEEEDDDD IIIINNNNFFFFOOOORRRRMMMMAAAATTTTIIIIOOOONNNN
- _O_b_j_e_c_t(_3_X), _X_m_C_r_e_a_t_e_D_r_a_g_I_c_o_n(_3_X), _X_m_D_i_s_p_l_a_y(_3_X),
- _X_m_D_r_a_g_C_o_n_t_e_x_t(_3_X), _X_m_D_r_o_p_S_i_t_e(_3_X), _X_m_D_r_o_p_T_r_a_n_s_f_e_r(_3_X), and
- _X_m_S_c_r_e_e_n(_3_X).
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Page 4 (printed 11/11/03)
-
-
-
-